<! Controller -->
<?php
	require_once ('../../models/Orders.php');
	$row = Orders::Get($_REQUEST['id']);
?>

<! View -->
<!DOCTYPE html>
<html lang="en">
	<?php include('../../inc/head.php'); ?>
	<body>
		<div>
			<?php include('../../inc/nav.php') ?>
		</div>
		<div id="content" class="dl-horizontal">
			
			<div class="control-group">
				<? function RenderInput($propertyName) { ?>
					<? global $row ?>
					<dl>
						<dt><?=$propertyName?>:</dt>
						<dd><?=$row[$propertyName]?></dd>
					</dl>
				<? } ?>
				
				<? 
				RenderInput('created_at');
				RenderInput('updated_at');
				RenderInput('Total');
				RenderInput('Tax');
				RenderInput('Shipping');
				RenderInput('ShipName');
				RenderInput('ShipAddress');
				RenderInput('ShipAddress2');
				RenderInput('ShipCity');
				RenderInput('ShipState');
				RenderInput('ShipZip');
				RenderInput('ShipPhone');
				RenderInput('BillName');
				RenderInput('BillAddress');
				RenderInput('BillAddress2');
				RenderInput('BillCity');
				RenderInput('BillState');
				RenderInput('BillZip');
				RenderInput('BillPhone');
				RenderInput('Date');
				RenderInput('PaymentMethod');
				RenderInput('CardNumber');
				RenderInput('Shipped');
				RenderInput('TrackingNumber');
				RenderInput('User_id');
				?>
		</div>
			<?php include('../../inc/footer.php'); ?>
		</div>
	</body>
</html>
